package com.coolingme.general;

/**
 * 备忘录角色：用于存储Originator的内部状态，且可以防止Originator以外的对象进行访问
 *
 * @author wangyue
 * @date 2020-09-26 17:22
 */
public class Memento {

    /**
     * Originator的内部状态
     */
    private String state;

    public Memento(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
